package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author zhaojian
 */

public interface UserMapper {

    @Select("select * from  t_users")
     List<User> findAll();

    @Insert("insert into t_users (name, PASSWORD, sex, birthday, registTime) " +
            "values(#{name}, #{password}, #{sex}, #{birthday}, #{registTime})")
    public int insertUser(User user);

}
